import request from '@/utils/request'

// 查询电厂计划信息列表
export function listPowerPlantPlan(query) {
  return request({
    url: '/basicInfo/powerPlantPlan/list',
    method: 'get',
    params: query
  })
}

// 查询电厂计划信息详细
export function getPowerPlantPlan(id) {
  return request({
    url: '/basicInfo/powerPlantPlan/' + id,
    method: 'get'
  })
}

// 新增电厂计划信息
export function addPowerPlantPlan(data) {
  return request({
    url: '/basicInfo/powerPlantPlan',
    method: 'post',
    data: data
  })
}

// 修改电厂计划信息
export function updatePowerPlantPlan(data) {
  return request({
    url: '/basicInfo/powerPlantPlan',
    method: 'put',
    data: data
  })
}

// 删除电厂计划信息
export function delPowerPlantPlan(id) {
  return request({
    url: '/basicInfo/powerPlantPlan/' + id,
    method: 'delete'
  })
}
